<include file="Public:pagerForm" />

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="__URL__" method="post">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
				<label>商品id：</label>
				<input type="text" name="commodity_id" value="{$_REQUEST.commodity_id}"/>
			</li>
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="__URL__/add" target="dialog" mask="true" ><span>新增</span></a></li>
			<li><a class="edit" href="__URL__/edit/id/{id}" target="dialog" mask="true" warn="请选择商品"><span>编辑</span></a></li>
			<li><a class="edit" href="__URL__/resume/id/{id}" target="ajaxTodo" warn="请选择商品"><span>生效</span></a></li>
			<li><a class="edit" href="__URL__/forbid/id/{id}" target="ajaxTodo" warn="请选择商品"><span>失效</span></a></li>
		</ul>
	</div>

	<table class="table" width="100%" layoutH="138">
		<thead>
		<tr>
			<th width="40">序号</th>
			<th width="60">商品编号</th>
			<th width="100" >商品名</th>
			<!--
			<th width="100" >限量开始时间</th>
			<th width="100" >限量结束时间</th>
			-->
			<th width="100" >限量类型</th>
			<th width="100" >限量初始数量</th>
			<th width="100" >剩余数量</th>
			<th width="100" >上架状态</th>
		</tr>
		</thead>
		<tbody>
		<volist id="vo" name="list">
			<tr target="id" rel="{$vo['id']}">
				<td>{$vo['id']}</td>
				<td>{$vo['commodity_id']}</td>
				<td>{$commoditys[$vo['commodity_id']]['name']}</td>
				<!--<td>{$vo['limit_begin']}</td>
				<td>{$vo['limit_end']}</td>-->
				<td><php>echo C('LIMIT_TYPE_NAME.'.$vo['limit_type']);</php></td>
				<td>{$vo['limit_num']}</td>
				<td>{$vo['left_num']}</td>
				<td><php>echo C('LIMIT_STATUS_NAME.'.$vo['status']);</php></td>
			</tr>
		</volist>
		</tbody>
	</table>

	<div class="panelBar">
		<div class="pages">
			<span>共{$totalCount}条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$currentPage}"></div>
	</div>

</div>


